JSP_JSP bean获取各种参数,1.包: 复制代码 代码如下: pack
<br>
<br>
public String getOperatingSystemArchitecture(){
RTE Specification Version:
<title>JSP Page</title>
Operating System Architecture: x86
}
<br>
<br>
<jsp:getProperty property="operatingSystemArchitecture"/>
public String getVmVersion(){
RTE Specification Name:
RTE Specification Vendor: Sun Microsystems Inc.
}
}
<br>
2.JSP代码:
VM Specification Name: Java Virtual Machine Specification
<jsp:getProperty property="vmVendor"/>
Runtime Environment Version(JDK version):
public String getVmSpecVendor(){
public String getRteSpecName(){
复制代码 代码如下:
RTE Specification Vendor:VM Vendor:
return System.getProperty("java.vm.name");
<br>
}
public String getRteSpecVendor(){
<br>
--%>
Created on : 2009-10-3, 13:06:24
Runtime Environment Version(JDK version): 1.6.0_16
<jsp:useBean/>
<head>
}
<jsp:getProperty property="runtimeEnvironmentVersion"/>
"http://www.w3.org/TR/html4/loose.dtd">
Runtime Environment Vendor(JDK vendor): Sun Microsystems Inc.
return System.getProperty("java.specification.vendor");
Operating System Name: Windows Vista
<br>
*
public String getRteSpecVersion(){
return System.getProperty("java.specification.version");
<br>
return System.getProperty("java.vm.specification.name");
}
Runtime Environment Vendor(JDK vendor):
return System.getProperty("java.vm.specification.vendor");
<br>
public String getVmSpecName(){
return System.getProperty("java.vendor");
<jsp:getProperty property="rteSpecName"/>
</head>
return System.getProperty("java.version");
<br>
Operating System Name:
<jsp:getProperty property="operatingSystemVersion"/>
<br>
VM Version: 14.2-b01
package beanpackage;
public String getOperatingSystemVersion(){
}
VM Name:
return System.getProperty("os.arch");
}
VM Name: Java HotSpot(TM) Client VM
<%@page contentType="text/html" pageEncoding="UTF-8"%>
VM Vendor: Sun Microsystems Inc.
return System.getProperty("os.version");
public String getRuntimeEnvironmentVendor(){
<br>
RTE Specification Name: Java Platform API Specification
VM Specification Version:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
</body>
return System.getProperty("java.vm.specification.version");
VM Specification Vendor:
Document : usebean
<jsp:getProperty property="rteSpecVendor"/>
RTE Specification Version: 1.6
public String getRuntimeEnvironmentVersion(){
Operating System Version: 6.0
return System.getProperty("java.vm.version");
<br>
</html>
Operating System Architecture:
<html>
VM Specification Vendor: Sun Microsystems Inc.
public String getVmSpecVersion(){
<jsp:getProperty property="vmName"/>
return System.getProperty("java.specification.name");
<br>
<jsp:getProperty property="runtimeEnvironmentVendor"/>
}
}
<jsp:getProperty property="vmSpecName"/>
<br>
<jsp:getProperty property="vmSpecVersion"/>
复制代码 代码如下:
*/}
VM Version:
VM Specification Name:
public String getVmName(){
VM Specification Version: 1.0
<jsp:getProperty property="vmSpecVendor"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<body>
* @author lucifer
public class SystemProperties {
<jsp:getProperty property="operatingSystemName"/>
}
public String getOperatingSystemName(){
Author : lucifer
<%--
Operating System Version:
}
<jsp:getProperty property="vmVersion"/>
public String getVmVendor(){
return System.getProperty("java.vm.vendor");
return System.getProperty("os.name");
<br>
}
/**
<jsp:getProperty property="rteSpecVersion"/>
相关热词: JSP
本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!
本文地址: https://v30.fanwenzhu.com/jiaob/jsp/5598.shtml
